package chapterTwo;

public class Tips {

	
	
	public static void main(String args[]){
		
		
		Object myObj = new String[]{"one", "two", "three"} ;
		 
			          for (String s : (String[])myObj) System.out.print(s + ".");
			      
			         
		
	}
	
	
	
	
	
	
	
	
	
}/*
iven the code. What is the output?
		1.  public static void main(String args[]) {
		2.      Object myObj = new String[]{"one", "two", "three"};{
		3.          for (String s : (String[])myObj) System.out.print(s + ".");
		4.      }
		5.  }
		A) one.two.three.
		B) Compilation fails because of an error at line 2
		C) Compilation fails because of an error at line 3
		D) An exception is thrown at runtime.
		
		
		---------------------------
		What is true? (Choose three)
				A) A method with the same signature as a private final method in class Z can be implemented in a subclass of Z.
				B) A final method in class Z can be abstract if and only if Z is abstract.
				C) A protected method in class Z can be overriden by any subclass of Z.
				D) A private static method can be called only within other static methods in class Z.
				E) A non-static public final method in class Z can be overriden in any subclass of Z.
				F) A public static method in class Z can be called by a subclass of Z without explicitly referencing the class Z.*/